package com.mall.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.utils.PageUtils;
import com.mall.entity.Attr;
import com.mall.vo.AttrGroupVo;
import com.mall.vo.AttrRespVo;
import com.mall.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-08-24 16:47:36
 */
public interface AttrService extends IService<Attr> {
    void saveAttr(AttrVo attr);

    IPage<AttrRespVo> queryPage(Map<String, String> map, Long catelogId);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<Attr> getRelationAttr(Long attrGroupId);

    List<AttrGroupVo> selectListGroupAttr(Long spuId);

    // PageUtils queryPage(Map<String, Object> params);
}

